#ifndef __PAGELIB_H__
#define __PAGELIB_H__

#include <vector>
#include <map>

using std::vector;
using std::map;
using std::pair;
using std::string;

class Configuration;
class DirScanner;
class FileProcessor;

class PageLib
{
public:
    PageLib(Configuration *pconf, DirScanner &pdirScanner, FileProcessor &fileProcessor);
    ~PageLib();

    void create();
    void store();

    vector<string> &getFiles();
private:
    DirScanner &_dirScanner;
    FileProcessor &_fileProcessor;
    vector<string> _files;
    map<int, pair<int, int>> _offsetLib;
};

#endif
